package com.zut.blocks.service.practice.lyb;

import com.zut.blocks.service.practice.lyb.domain.User;

import java.util.ArrayList;
import java.util.List;

/**
 * Demo class
 *
 * @author lyb
 * @date 2020/12/15
 */
public class LybManagerImpl implements LybManager {
    private static final int last=10;
    @Override
    public String helloLyb(String hello) {
        return "lyb success";
    }

    @Override
    public List<User> getUser() {
        List<User> result=new ArrayList<>();
        for (int i=0;i<last;i++){
            User user=new User();
            user.setName("Uername"+(i));
            result.add(user);
        }
        return result;
    }
}
